#include"stdio.h"
typedef unsigned char *byte_pointer;


void show_byts(byte_pointer start,int len)
  {
    int i;
    for(i=0;i<len;i++)
         {
            printf("%.2x",start[i]);
         }
printf("\n");
}

void main()
{
    short sx=-12345;
    int x=sx;
    unsigned short usx=sx;
    unsigned ux=usx;
    
    printf("sx =%d:\t",sx);
    show_byts((byte_pointer)&sx,sizeof(short));
    printf("x  =%d:\t",x);
    show_byts((byte_pointer)&x,sizeof(int));
    printf("usx=%d:\t",usx);
    show_byts((byte_pointer)&usx,sizeof(unsigned short));
    printf("ux =%d:\t",ux);
    show_byts((byte_pointer)&ux,sizeof(unsigned));
}

 
